
package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.ext.ExpenseEntityExt;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
* @author autoGen
* @time 2018-08-13 10:43:26
*/
@Repository
@Mapper
public interface ExpenseDao {


	Integer insert(ExpenseEntityExt entity);
	Integer update(ExpenseEntityExt paasComment);

	void insertBatch(@Param("list") List<ExpenseEntityExt> openExpenseList);

	Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);

	ExpenseEntityExt getByKey(@Param("key") Long key, @Param("corpid") String corpid);

	List<ExpenseEntityExt>  findEntitys(@Param("param") Map<String, Object> param);
	Integer getEntitysCount(@Param("param") Map<String, Object> param);

	Integer deleteBatch(@Param("list") List<Long> idIn, @Param("corpid") String corpid);
}